﻿@model IEnumerable<StarcraftDemo4.Game>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Move Number
        </th>
        <th>
            Move
        </th>
        <th></th>
    </tr>
    @{int i =0;}
@foreach (var item in Model) {
    i = i + 1;
    <tr>
        <td>
            @i
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Move)
        </td>
        <td>
    @Html.ActionLink("back to list", "../Result") |
    @Html.ActionLink("back to home", "../Home")
        </td>
    </tr>
}

</table>
